<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        border: solid;
        padding: 10px;
        margin: 10px;
      }
    </style>
  </head>
  <body>
    <ul>
      <li onclick="console.log(this.innerHTML)">l1</li>
      <li onclick="console.log(this.innerHTML)">l2</li>
      <li onclick="console.log(this.innerHTML)">l3</li>
      <li onclick="console.log(this.innerHTML)">l4</li>
    </ul>
    <script></script>
  </body>
</html>
